package com.by.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.by.bean.UserInfo;
import com.by.context.UserContext;
import com.by.entity.*;
import com.by.mapper.*;
import com.by.msg.Constant;
import com.by.service.SpuService;
import com.by.utils.Assert;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 江俊俊
 * @version 1.0
 * @description
 * @date 2025/4/10 21:31
 * @since JDK1.8
 */
@Service
@Slf4j
public class SpuServiceImpl extends ServiceImpl<SpuMapper, Spu> implements SpuService {

    @Autowired
    SpuMapper spuMapper;

    @Override
    public Spu querySpuBySpuId(Long id) {

        //查询spu
        Spu spu = spuMapper.selectById(id);


        return spu;
    }
}
